package com.gfxy.modules.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: lijixin 2021/10/24 8:37 下午
 */
@Data
@TableName("gfxy_t_user_info")
public class TeacherBaseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    private String realname;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @Dict(dicCode = "sex")
    private Integer sex;

    private String email;
    private String phone;

    @Dict(dicCode="USER_INFO_STATUS")
    private Integer status;

    @Dict(dicCode="TEACHER_INFO_DEL")
    private Integer delFlag;


    @Dict(dicCode = "GFXY_TITLES_RANK")
    private Integer titleRank;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String work_date;


    @Dict(dicCode = "USER_INFO_TYPE")
    private String teacherType;

    @Dict(dicCode = "USER_INFO_POSITION")
    private Integer position;

    @Dict(dicCode = "USER_INFO_DUAL_QUALIFICATION")
    private Integer dualQualification;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;
}
